Skip to content

Conversation

@AsakuraMizu
Copy link
Contributor

This PR adds a convenient trait implementation for converting AllocError to AxError.

TODO: make this an optional feature?

@AsakuraMizu
Copy link
Contributor Author

It seems that we need to resolve arceos-org/axerrno#1 first.

@equation314
Copy link
Member

I don't recommend this change. As an independent crate that may be used by others, allocator should not introduce ArceOS-specific dependencies in design.

@AsakuraMizu
Copy link
Contributor Author

As an independent crate that may be used by others, allocator should not introduce ArceOS-specific dependencies in design.

So I also proposed an alternative: adding an axerrno feature, which is only enabled in ArceOS.

@equation314 equation314 merged commit a472413 into arceos-org:main Nov 9, 2025
13 checks passed
@AsakuraMizu AsakuraMizu deleted the feat/axerrno branch November 10, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants